10. AnkiWeb和同步

您所在的位置:网站首页 anki ipad下载免费吗 10. AnkiWeb和同步

10. AnkiWeb和同步

2024-06-21 05:56| 来源: 网络整理| 查看: 265

AnkiWeb 是一项服务,允许你在多个设备上保持集合同步,并在线学习。请先注册在新窗口打开一个免费帐户,然后再执行以下步骤。

AnkiWeb is a service that allows you to keep your collection synchronized across multiple devices, and to study online. Please sign up for a free account before following the steps below.

# 视频教程

Intro Videos

syncing intro videos在新窗口打开

For a quick introduction to syncing, please check out the syncing intro videos.

# 配置

Setup

若要开始跨设备同步你的集合,请单击同步按钮(主界面右上角的按钮),或按键盘上的y。系统将提示你输入你在注册过程中创建的 AnkiWeb ID 和密码。

To start syncing your collection across devices, click the sync button (the top right one on the main screen), or press 'y' on your keyboard. You’ll be prompted for your AnkiWeb ID and password, which you created in the signup process.

当你第一次同步你的集合时,Anki 会问你是想上传还是下载。如果你的计算机上有卡片,并且你的 AnkiWeb 帐户为空,请选择“上载”将你的数据发送到 AnkiWeb。如果你在 AnkiWeb 上有来自另一台设备的卡片,而你的计算机上没有卡片,请选择“下载”将空的本地集合替换为 AnkiWeb 中的卡片。如果两台设备上都有不同的卡,则需要做更多的工作来避免数据丢失。

When you synchronize your collection for the first time, Anki will ask you if you want to upload or download. If you have cards on your computer and your AnkiWeb account is empty, choose "upload" to send your data to AnkiWeb. If you have cards on AnkiWeb from another device, and no cards on your computer, choose "download" to replace the empty local collection with the cards that are on AnkiWeb. If you have different cards on both devices, more work is required to avoid losing data.

一旦完成了最初的单向同步,除了少数例外,Anki 将能够合并来自多个位置的更改。

Once the initial one way sync is completed, Anki will be able to merge changes from multiple locations with a few exceptions.

如果你有多个人在一台机器上使用 Anki,并且为每个用户创建了一个配置文件,那么每个用户都需要创建自己的 AnkiWeb 帐户进行同步。如果你试图用一个 AnkiWeb 帐户同步多个配置文件,你将丢失数据。

If you have multiple people using Anki on one machine and have created a profile for each user, each user will need to create their own AnkiWeb account to sync with. If you attempt to synchronize multiple profiles with a single AnkiWeb account, you will lose data.

# 自动同步

Automatic Syncing

启用同步后,每次关闭或打开集合时,Anki 都会自动同步。如果你希望手动同步,可以在 Anki 的首选项中禁用自动同步。

Once syncing is enabled, Anki will automatically sync each time your collection is closed or opened. If you would prefer to synchronize manually, you can disable automatic syncing in Anki’s preferences.

# 按钮颜色

Button Color

当需要正常同步时,同步按钮将变为蓝色,而当需要完全同步时,则变为红色。

The sync button will change to blue when a normal sync is required, and red when a full sync is required.

# 同步媒体

Media

相关视频在新窗口打开

Related video: https://www.youtube.com/watch?v=phP9GGG-PxY

Anki 将同步你的笔记使用的任何音频和图像。当媒体资源从媒体资源文件夹添加或删除时将会被注意到。但是只是编辑已存在的文件,而不增加或删除,将不会被注意到。为了让你的编辑得到注意,你还需要添加或删除一个文件。

Anki will synchronize any sounds and images used by your notes. It will notice when media has been added or removed from your media folder, but will not notice if you have edited some existing files without adding or removing any. To get your edits noticed, you need to add or remove a file as well.

单向同步(提示你上传或下载)对媒体同步的方式没有影响——媒体更改总是合并的。

One-way syncs (where you're prompted to upload or download) have no influence over how media syncs - media changes are always merged.

为了防止意外的数据丢失,只有在媒体完全同步后进行删除,删除才会同步到其他设备。如果在设备完全同步之前删除文件,并且删除的文件已在 AnkiWeb 上,则下次同步时会下载这些文件。

To prevent accidental data loss, deletions will only sync to other devices if they are made after media is fully in sync. If you delete files before your device is fully in sync, and the deleted files are already on AnkiWeb, they will be downloaded the next time you sync.

如果你在 USB 闪存驱动器上运行 Anki,则应使用 NTFS 文件系统,因为 Anki 可能无法检测 FAT32 文件系统上的媒体更改。

If you’re running Anki off a USB flash drive, you should use an NTFS file system, as Anki may not be able to detect media changes on a FAT32 filesystem.

# 冲突

Conflicts

相关视频在新窗口打开

Related video: https://www.youtube.com/watch?v=UEAcpfMQnjo

在正常情况下,复习和笔记编辑可以合并,因此,如果你在同步前在两个不同的设备上进行复习或编辑,Anki 将保留你在两个位置所做的更改。如果在两个不同的位置对同一张卡片进行了复习,两次复习都将标记在修订历史记录中,并且卡片将保持最近答复时的状态。

Under normal circumstances, reviews and note edits can be merged, so if you review or edit on two different devices before syncing, Anki will preserve your changes from both locations. If the same card has been reviewed in two different locations, both reviews will be marked in the revision history, and the card will be kept in the state it was when it was most recently answered.

有些更改是 Anki 无法合并的。这些主要与笔记的格式有关:比如添加一个新字段,或者删除一个卡片模板。当你执行无法合并的操作时,Anki 会警告你,并为你提供中止操作的选项。如果你选择继续,系统将要求你在下次同步集合时选择是保留本地副本还是将副本保留在 AnkiWeb 上。

There are certain changes that Anki is unable to merge. These mainly relate to the format of notes: things like adding a new field, or removing a card template. When you perform an operation that can’t be merged, Anki will warn you, and give you the option of aborting the operation. If you choose to continue, you’ll be asked to choose whether to keep the local copy or the copy on AnkiWeb when your collection is next synchronized.

如果在同步时检测到某些问题,它还会强制进行单向同步。如果你发现这种情况持续发生,请在我们的支持网站上发帖。

If certain problems are detected while syncing, it will also force a one way sync. If you find this consistently happens, please post on our support site.

当需要单向同步时,你需要选择是希望将集合保留在本地设备上,还是希望将集合保存在 AnkiWeb 上。如果两端都进行了更改,则只能保留一端的更改。

When a one way sync is required, you need to choose whether you wish to keep the collection on your local device, or the collection on AnkiWeb. If changes have been made on both ends, only changes on one end can be preserved.

如果选择“上传”,则本地设备上的内容将发送到 AnkiWeb。然后你需要同步你的其他设备,并选择“下载”让他们获取该内容的副本。

If you choose Upload, the content on your local device will be sent to AnkiWeb. You then need to sync your other devices, and choose "Download" to have them grab a copy of that content.

如果你选择下载,它将用 AnkiWeb 上的数据替换你所做的任何本地更改。

If you choose Download, it will replace any local changes you’ve made with the data that is on AnkiWeb.

一旦所有设备都处于同步状态,未来的同步将恢复到合并两端更改的正常行为。

Once all devices are in sync, future syncs will return to the normal behaviour of merging changes from both ends.

如果你希望强制完全上传或下载(例如,因为你意外删除了一侧的牌组,并希望恢复牌组,而不是同步其删除),你可以在“工具”>“首选项”>“网络”中选中“下次同步时,强制单向覆盖”框,然后照常同步。(你可以选择使用哪一侧。)

If you wish to force a full upload or download (for example, because you accidentally deleted a deck on one side and want to restore the deck rather than having its deletion synchronized), you can check the "On next sync, force changes in one direction" box in Tools>Preferences>Network, then sync as usual. (You’ll be given the option to choose which side you want to use.)

强制单向同步只会影响卡片同步-媒体会正常同步。如果你有要从 AnkiWeb 中删除的文件,请首先确保你的客户端完全同步。同步是最新的后,你删除的任何文件(例如通过检查媒体功能)都将在以下同步中从 AnkiWeb 中删除。

Forcing a one way sync only affects card syncing - media is synced as normal. If you have files that you want to remove from AnkiWeb, please ensure your client is fully in sync first. After syncing is up to date, any files you remove (e.g via the Check Media function) will be removed from AnkiWeb on the following sync.

# 合并冲突

Merging Conflicts

由于[第一次同步]只能同步一个方向上的更改,因此,如果在设置同步之前向不同的设备或配置文件添加了不同的内容,则如果用另一个设备的内容覆盖一个设备上的内容,那么该设备上的内容将丢失。通过一些工作,可以手动将数据合并到单个集合中。

Because the first sync can only sync changes in one direction, if you have added different content to different devices or profiles before setting syncing up, content on one device will be lost if you overwrite it with the content from the other device. With some work, it is possible to manually merge data into a single collection.

首先对每个设备/配置文件进行备份,以防出现问题。对于计算机版本,你可以使用“文件”>“导出”导出包含计划信息和媒体文件的“所有牌组”,并将文件保存在安全的地方。在 AnkiMobile 中,牌组列表屏幕上的“添加/导出”按钮将允许你导出所有带媒体的牌组。

Start by taking a backup on each device/profile, in case something goes wrong. With the computer version you can use File>Export to export "all decks" with scheduling information and media files included, and save the file somewhere safe. In AnkiMobile, the Add/Export button on the decks list screen will let you export all decks with media.

接下来,如果你的设备之一是移动设备,请首先同步它。如果发生冲突,请选择“上传”,用移动设备中的数据覆盖 AnkiWeb 上的任何现有数据。如果两个设备/配置文件都在你的计算机上,请首先将设备/配置与最多的牌组同步。

Next, if one of your devices is a mobile device, synchronize it first. If there’s a conflict, choose "upload" to overwrite any existing data on AnkiWeb with the data from your mobile device. If both devices/profiles are on your computer, synchronize the device/profile with the most number of decks first.

现在返回到其他设备/配置文件。如果启用了自动同步,则可能会弹出一条消息,询问你是否要上传或下载。单击“取消”按钮-我们还不想同步。

Now return to the other device/profile. If automatic syncing is enabled, a message may pop up asking if you want to upload or download. Click the cancel button - we don’t want to sync yet.

查看牌组列表后,单击第一个牌组旁边的齿轮图标,然后选择“导出”。导出包含学习进度信息和媒体的内容,并将.apkg 文件保存在某个位置。现在,你需要对每个顶层牌组重复此操作。

Once you’re looking at the deck list, click the cog icon next to the first deck, and choose "export". Export the content with scheduling information and media included, and save the .apkg file somewhere. Now you’ll need to repeat this for each top-level deck.

导出所有顶层牌组后,单击右上角的同步按钮,然后选择“下载”,这将用你从其他设备同步的内容覆盖本地内容。

Once all top-level decks have been exported, click the sync button at the top right, and choose "download", which will overwrite the local content with the content you synced from your other device.

现在,你可以使用“文件”>“导入”导入先前导出的.apkg 文件,这将把导出的内容与现有内容合并,这样所有内容都将在一个位置。

You can now use File>Import to import the .apkg files you exported earlier, which will merge the exported content with the existing content, so everything will be in one place.

# 防火墙

Firewalls

Anki 需要能够进行出站 HTTPS 连接以进行同步。它必须能够连接到 ankiweb.net、sync.ankiweb.net 和 sync2.ankiweb.net 等。这些域名可能会随着时间的推移而更改,它们指向的 IP 地址也可能会更改,因此我们建议你允许通配符访问*.ankiweb.com,以减少将来需要更新防火墙规则的机会。

Anki needs to be able to make outbound HTTPS connections to sync. It must be able to connect to ankiweb.net, sync.ankiweb.net, sync2.ankiweb.net, and so on. These domains may change over time, and the IP addresses they point to may also change, so we recommend you allow wildcard access to *.ankiweb.net to reduce the chance of the firewall rules needing to be updated in the future.

如果你的机器上有防火墙,你应该为 Anki 添加一个例外。如果你在工作或学校网络上,请联系你的网络管理员寻求帮助-我们无法为你提供帮助。

If you have a firewall on your machine, you should add an exception for Anki. If you are on a work or school network, please contact your network administrator for assistance - it is not something we can help you with.

# 代理

Proxies

如果你需要一个代理来访问互联网,如果你在 Windows 或 macOS 上,Anki 应该自动获取你的系统代理设置,并且如果你在其他平台上,它将遵守 HTTP_PROXY 环境变量。

If you need a proxy to access the internet, Anki should automatically pick up your system proxy settings if you’re on Windows or macOS, and will honour the HTTP_PROXY environment variable if you’re on another platform.

只有在手动配置代理并且不需要密码的情况下,Anki 才能获取你的系统设置。如果你的系统使用自动代理设置,或者使用需要用户名和密码的代理,则需要手动告知 Anki 代理配置。

Anki will only be able to pick up your system settings if a proxy is manually configured, and does not require a password. If your system uses automatic proxy setup, or uses a proxy that requires a username and password, you will need to manually tell Anki the proxy configuration.

要告诉 Anki 你的代理设置,请定义一个指向代理服务器的 HTTP_PROXY 环境变量。它看起来像:

To tell Anki your proxy settings, define a HTTPS_PROXY environmental variable that points to the proxy server. It will look like:

http://user:[email protected]:8080

如果你的用户名或密码包含@(例如[email protected]),你需要将其更改为%40,如下所示:

If your username or password contains an @ (e.g [email protected]), you need to change it to %40, like so:

http://user%40workdomain.com:[email protected]:8080

Anki 2.0 希望找到 HTTP_PROXY,而不是 HTTPS_PROXY。

Anki 2.0 expects to find HTTP_PROXY instead of HTTPS_PROXY.

Windows 设置环境变量,请查看:https://www.google.com/search?q=windows+set+environmental+variable在新窗口打开

To set environmental variables on Windows, please see https://www.google.com/search?q=windows+set+environmental+variable

Mac 设置环境变量,请查看:http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x在新窗口打开

If you’re on a Mac, please see http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x

严重锁定的网络拦截安全连接并出示自己的证书,可能会导致 Anki 抛出 SSL 错误。在这样的环境中,你可以查看https://ankiweb.net/shared/info/878367706在新窗口打开

Heavily locked down networks that intercept secure connections and present their own certificate instead may cause Anki to throw up SSL errors. In such environments, you may be able to work around the errors with https://ankiweb.net/shared/info/878367706

另一种解决方案是安装一个本地代理服务器,并将该代理服务器指向你的普通代理服务器。然后,你可以告诉 Anki 使用本地代理,它会将请求重定向到你通常使用的代理。

An alternative solution is to install a local proxy server, and point that proxy server at your normal proxy server. You can then tell Anki to use the local proxy, which will redirect requests to the proxy you normally use.



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3